using System;
using System.Diagnostics;

namespace Needle.Utils.Parser
{
    /// <summary></summary>
    [Serializable]
    [DebuggerDisplay("[{Line},{Column}] C# {CSharpType}: {Value}")]
    public class CSharpToken : StringToken
    {
        /// <summary></summary>
        public CSharpToken(string value, TokenType type, CSharpTokenType csType, int line, int col, int index)
            : base(value, type, line, col, index)
        {
            _CSharpType = csType;
        }

        private CSharpTokenType _CSharpType;
        /// <summary></summary>
        public CSharpTokenType CSharpType
        {
            get { return _CSharpType; }
        }
    }
}
